package com.javatraining.corejava.homework.encapsulation;

public class Car {

	private String make;
	private String model;
	private int year;

	// private int price;

	public Car(String make, String model, int year) {

		this.make = make;
		this.model = model;
		this.year = year;

	}

	public String getMake() {
		return make;
	}

	public String getModel() {
		return model;
	}

	public int getYear() {
		return year;
	}


	@Override
	public String toString() {
		return "Car [make=" + make + ", model=" + model + ", year=" + year
				+ ", getClass()=" + getClass() + ", hashCode()=" + hashCode()
				+ ", toString()=" + super.toString() + "]";
	}



}
